﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CacheAttribute.Attributes
{
    /// <summary>
    /// 更新缓存Attribute
    /// </summary>
    [AttributeUsage(validOn:AttributeTargets.Method,AllowMultiple =true,Inherited =true)]
    public class CacheUpdateAttribute : Attribute
    {
        /// <summary>
        /// 更新正则
        /// </summary>
        public string preffix { get; }

        public string Totoal_Name { get; }

        public bool work { get; set; }

        private int Expire { get; set; }

        public CacheUpdateAttribute(string preffix, string totoal_Name, bool work, int expire)
        {
            this.preffix = preffix;
            Totoal_Name = totoal_Name;
            this.work = work;
            Expire = expire;
        }
    }
}
